<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<section class="text-center">
    <div class="container">
        <h3 class="title f-30">最近浏览</h3>
        <div class="row">
                <c:forEach items="${recent.products}" var="product">
                    <div class="col-sm-6 col-md-4 col-lg-3">
                        <!-- Product item -->
                        <div class="product-item">
                            <a href="${path}/product/details?id=${product.pid}">
                                <img src="${path}/images/product/${product.imgUrl}" alt="image">
                            </a>
                            <div class="product-caption">
                                <h4 class="product-name">
                                    <a href="#">${product.pName}</a>
                                </h4>
                                <div class="product-price-group">
                                    <span class="product-price">￥${product.price}</span>
                                    <span>${product.standard}</span>
                                </div>
                                <div class="ht-btn-group">
                                    <a href="${path}/cart/addtocart?pid=${product.pid}" class="compare_btn">添加到购物车</a>
                                </div>
                                <h4></h4>
                            </div>
                        </div>
                    </div>
                </c:forEach>

        </div>
    </div>
</section>